package com.angel.mocks.architecture.executable;

import com.angel.common.interfaces.Executable;
import com.angel.data.generator.base.DataGeneratorRunner;
import com.angel.data.generator.builders.impl.DataGeneratorAnnotationRunnerBuilder;
import com.angel.mocks.data.generator.dataGenerator.CountryAnnotationDataGenerator;
import com.angel.mocks.data.generator.dataGenerator.ExpedienteAnnotationDataGenerator;
import com.angel.mocks.data.generator.dataGenerator.MunicipalidadAnnotationDataGenerator;

public class DataGeneratorExecutable implements Executable{

	public void execute() {
		DataGeneratorAnnotationRunnerBuilder builder = new DataGeneratorAnnotationRunnerBuilder();
		builder.addDataGeneratorClass(CountryAnnotationDataGenerator.class);
		builder.addDataGeneratorClass(MunicipalidadAnnotationDataGenerator.class);
		builder.addDataGeneratorClass(ExpedienteAnnotationDataGenerator.class);
		DataGeneratorRunner runner = builder.buildDataGeneratorRunner();
		runner.generateData();
		runner.finalizeGenerator();
	}
}
